package com.imooc.mall.service;

import com.imooc.mall.exption.ImoocMallException;
import com.imooc.mall.model.pojo.User;

public interface UserService {
    User getUser(Integer id);

    void register(String username, String password) throws ImoocMallException;

    User login(String username, String password) throws ImoocMallException;

    void updateInfomation(User user) throws ImoocMallException;

    boolean checkAdminRole(User user);
}
